/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package POJO;

import java.io.Serializable;

/**
 *
 * @author Kute_Ants
 */
public class sanPhamPOJO implements Serializable
{
    private String maSanPham;
    private String maloaiSanPham;
    private int soLuong;
    private int giaBan;
    private String maNhaSanXuat;
    private String tenSanPham;
    
    //phuong thuc khoi tao

    public sanPhamPOJO(String MaSanPham, String MaloaiSanPham, int SoLuong, int GiaBan, String MaNhaSanXuat, String TenSanPham)
    {
        this.maSanPham = MaSanPham;
        this.maloaiSanPham = MaloaiSanPham;
        this.soLuong = SoLuong;
        this.giaBan = GiaBan;
        this.maNhaSanXuat = MaNhaSanXuat;
        this.tenSanPham = TenSanPham;
    }
    
    public sanPhamPOJO()
    {
        this.maSanPham = null;
        this.maloaiSanPham = null;
        this.soLuong = 0;
        this.giaBan = 0;
        this.maNhaSanXuat = null;
        this.tenSanPham = null;
    }
    public sanPhamPOJO(sanPhamPOJO SP)
    {
        this.maSanPham = SP.maSanPham;
        this.maloaiSanPham = SP.maloaiSanPham;
        this.soLuong = SP.soLuong;
        this.giaBan = SP.giaBan;
        this.maNhaSanXuat = SP.maNhaSanXuat;
        this.tenSanPham = SP.tenSanPham;
    }
    
    // phuong thuc set get

    public int getGiaBan() {
        return giaBan;
    }

    public void setGiaBan(int GiaBan) {
        this.giaBan = GiaBan;
    }

    public String getMaNhaSanXuat() {
        return maNhaSanXuat;
    }

    public void setMaNhaSanXuat(String MaNhaSanXuat) {
        this.maNhaSanXuat = MaNhaSanXuat;
    }

    public String getMaSanPham() {
        return maSanPham;
    }

    public void setMaSanPham(String MaSanPham) {
        this.maSanPham = MaSanPham;
    }

    public String getMaloaiSanPham() {
        return maloaiSanPham;
    }

    public void setMaloaiSanPham(String MaloaiSanPham) {
        this.maloaiSanPham = MaloaiSanPham;
    }

    public int getSoLuong() {
        return soLuong;
    }

    public void setSoLuong(int SoLuong) {
        this.soLuong = SoLuong;
    }

    public String getTenSanPham() {
        return tenSanPham;
    }

    public void setTenSanPham(String TenSanPham) {
        this.tenSanPham = TenSanPham;
    }
    
    
    
    
    
}
